BuildFeature

The IntelliJ Platform Gradle Plugin build features dedicated to control some of the low-level Gradle plugin behaviors. To enable or disable a particular feature, add a Project property to the gradle.properties file with the following pattern:

org.jetbrains.intellij.buildFeature.<buildFeatureName>=<true|false>

Switch to org.gradle.api.configuration.BuildFeatures when supporting Gradle 8.5+.

Entries

Link copied to clipboard

Instruct the IDE that sources are needed to be downloaded when working with IntelliJ Platform Gradle Plugin. Value is passed directly to the Idea Gradle Plugin to the idea.module.downloadSources property.

Link copied to clipboard

When the BuildSearchableOptionsTask doesn't produce any results, e.g., when the plugin doesn't implement any settings, a warning is shown to suggest disabling it for better performance with IntelliJPlatformExtension.buildSearchableOptions.

Link copied to clipboard

Due to IDE limitations, it is impossible to run the IDE in headless mode to collect searchable options for a paid plugin. As paid plugins require providing a valid license and presenting a UI dialog, it is impossible to handle such a case, and the task will fail. This feature flag displays the given warning when the task is run by a paid plugin.

Link copied to clipboard

Checks whether the currently used Gradle IntelliJ Plugin is outdated and if a new release is available. The plugin performs an update check on every run asking the GitHub Releases page for the redirection URL to the latest version with HEAD HTTP request: https://github.com/jetbrains/gradle-intellij-plugin/releases/latest.

Link copied to clipboard

By default, JetBrains Cache Redirector is used when resolving Maven repositories or any resources used by the IntelliJ Platform Gradle Plugin. Due to limitations, sometimes it is desired to limit the list of remote endpoints accessed by Gradle.

Link copied to clipboard

Some dependencies are tied to IntelliJ Platform build numbers and hosted in the IntelliJ Dependencies Repository. Despite this, certain versions (like EAP or nightly builds) might be absent. To solve this, we fetch a list of all versions from the Maven repository and locate the closest match. This method requires an additional remote repository request. If undesired, this feature can be disabled to strictly match dependencies to your build version.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun getValue(providers: ProviderFactory): Provider<Boolean>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.